Image

sealed class Image : ChipDecoration

Represents an Image displayed before/after the chip's text. Images are 24.dp tall.

Inheritors

Types

Link copied to clipboard

Represents a composable function that displays an image before/after the chip's text. The image will be 24.dp tall.

Link copied to clipboard
data class Painter(val painter: Painter, val contentDescription: String? = null) : ChipDecoration.Image

Represents a androidx.compose.ui.graphics.painter.Painter displayed before/after the chip's text. The image will be 24.dp tall and will be tinted with SourceChip.Style.contentColour.

Link copied to clipboard
data class Vector(val imageVector: ImageVector, val contentDescription: String? = null) : ChipDecoration.Image

Represents an ImageVector displayed before/after the chip's text. The image will be 24.dp tall and will be tinted with SourceChip.Style.contentColour.

Properties

Link copied to clipboard
abstract val content: @Composable RowScope.(Modifier) -> Unit

The content to display. The provided modifier must be set on the content. The modifier is used to apply the correct size to the icon/image.

Link copied to clipboard
open override val height: Dp

The height of the icon/image.